import json

dic = {1: {1: 1}}

ret = json.dumps(dic)

print(ret)